/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package savet.gui.tabelas.group;

import javax.swing.DefaultListSelectionModel;
import javax.swing.ListSelectionModel;
import savet.gui.util.IUtilTabela;

/**
 *
 * @author Rafael
 */
public class NossoListSelectionModel extends DefaultListSelectionModel implements ListSelectionModel{

    IUtilTabela utilTabela;
    
    public IUtilTabela getUtilTabela() {
        return utilTabela;
    }

    public void setUtilTabela(IUtilTabela utilTabela) {
        this.utilTabela = utilTabela;
    }

    @Override
    public void setSelectionInterval(int index0, int index1) {
        super.setSelectionInterval(index0, index1);
        utilTabela.addSelectionInterval(index0, index1);
    }




}
